<?php
namespace szxh\logic;
class AppHome extends Common {
    public function getDate() {
        $table = model('AppHome');
        $alldate = $table->getAllDate();
        if($alldate === false) {
            return $this->setInfo($table->getCode() , $table->getMessage());
        }
        return $alldate;
    }

    public function getRow() {
        $table = model('AppHome');
        $row = $table ->getRow();
        if($row === false) {
            return $this->setInfo($table->getCode(),$table->getMessage());
        }
        return $row;
    }

    public function getDes() {
        $table = model('AppHome');
        $desdate = $table -> getDate();
        if($row === false) {
            return $this->setInfo($table->getCode(),$table->getMessage());
        } 
        return $desdate;

    }

    public function getNum() {
        $table = model('AppHome');
        $getnum = $table->getNum();
        $get = $getnum['pageview'];
        $get = $get + 1;
        //var_dump($getnum['pageview']);
        //var_dump($get);
        return $get;
    }

    public function upNum($up) {
        $table = model('AppHome');
        $table->upNume($up);
    }
}
?>